package com.ywk.pattern._27_interpreter;

public class Scale extends Expression {
    @Override
    public void excute(String playKey, double playValue) {
        String scale = "";
        switch ((int) playValue) {
            case 1:
                scale = "低音";
                break;
            case 2:
                scale = "中音";
                break;
            case 3:
                scale = "高音";
                break;

        }
        System.out.print(scale+" ");
    }
}
